package com.yeban.javase.day16.state.runnable;

/**
 * @Desc TODO
 * @Author yeban
 * @Date 2025/10/30
 *
 * 就绪状态 → 终止状态
 */
public class RunnableAndTerminited {
    public static void main(String[] args) throws InterruptedException {
        Thread t = new Thread(() -> System.out.println("线程执行完毕"));
        t.start();
        Thread.sleep(100);
        System.out.println(t.getState()); // TERMINATED
    }
}
